import { BaseItem } from "../BaseItem";
import { ResouceConst } from "../../../../component/gconst/ResouceConst";
import { ScaleBitmap } from "../../../../../com/mui/display/ScaleBitmap";
//class BaseItemNormal
    
    export  class BaseItemNormal extends BaseItem
    {
        constructor()
        {
            super();
            return;
        }

        protected /* override */ createChildren(): void
        {
            this._itemBg = ResouceConst.getScaleBitmap("PackItemBg");
            this._itemBg.x = -3;
            this._itemBg.y = -3;
            this.addChild(this._itemBg);
            super.createChildren();
            return;
        }

        protected /* override */ resetBitmapSize(): void
        {
            super.resetBitmapSize();
            if (this._itemBg) 
            {
                this._itemBg.width = _width + 6;
                this._itemBg.height = _height + 6;
            }
            return;
        }

        /* internal */ /* var */_itemBg: ScaleBitmap;
    }
